<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Untitled Document</title>
        <link rel="stylesheet" type="text/css" href="<?php echo BAOGG_AJAX;?>ext-2.2.1/resources/css/ext-all.css" />
        <!-- GC --><!-- LIBS -->
        <script type="text/javascript" src="<?php echo BAOGG_AJAX;?>ext-2.2.1/adapter/ext/ext-base.js">
        </script>
        <!-- ENDLIBS -->
        <script type="text/javascript" src="<?php echo BAOGG_AJAX;?>ext-2.2.1/ext-all.js">
        </script>
        <script type="text/javascript">
            Ext.onReady(function(){
                var pnl = new Ext.Panel({
					contentEl:'adminForm',
                    region: 'center',
                    tbar: [{ // <-- Add the action directly to a toolbar
                        text: 'Action Menu',
                        handler: function(){
                           Ext.Msg.alert('Status', 'Changes saved successfully.');
                        }
                    },'-',{ // <-- Add the action directly to a toolbar
                        text: 'close',
                        handler: function(){
                           parent.Ext.getCmp("gridDialog").close();
                        }
                    }]
                });
                var viewpoint = Ext.create('Ext.container.Viewport', {
    layout: 'border',
    renderTo: Ext.getBody(),
                    items: [pnl]
                });
            });
        </script>
    </head>
    <body>
        <form id="adminForm">
            <fieldset>
                <legend>
                    test form
                </legend>
                <div>
                    <span>
                        <label>
                            name:
                        </label>
                        <input id="username" name="username" /></span>
                </div>
            </fieldset>
        </form>
    </body>
</html>